export function isEmpty(obj: any): boolean {
  if (obj === null || obj === undefined) {
    return true;
  }

  if (Array.isArray(obj)) {
    return obj.length === 0;
  }

  if (obj.constructor === Object) {
    return Object.keys(obj).length === 0;
  }

  return !!obj;
}
